package com.ayou.plugin;

/**
 * @description:
 * @author: ayouman
 * @date: 2024/11/11 23:19
 */
public class SqlInterceptor implements Interceptor {

    @Override
    public Object intercept(Invocation invocation) {
        System.out.println("执行sql拦截器开始");
        Object res = invocation.proceed();
        System.out.println("执行sql拦截器结束");
        return res;
    }

    @Override
    public <T> T plugin(Object target) {
        return Plugin.wrap(target, this);
    }
}


